var demoApp = angular.module('book',['ngGrid', 'ace', 'ui.codemirror', 
                                     'ui.bootstrap','ui.sortable',
                                     'itemServices', 'blueimp.fileupload',
                                     'googlechart.directives'])

/*google.setOnLoadCallback(function () {
    angular.bootstrap(document.body, ['book']);
});*/
google.load('visualization', '1', {packages: ['corechart']});

/**
 * Router Provider
 */
demoApp.config(function($routeProvider) {
    $routeProvider.
      when('/login', {templateUrl:'partials/login.html'}).
      when('/dashboard', {controller:"DashBoardCtrl", templateUrl:'partials/dashboard.html'}).
      when('/settings', {controller:"SettingsCtrl", templateUrl:'partials/settings.html'}).
      when('/coming', { templateUrl:'partials/coming.html'}).
      when('/time_tracking', {controller:"TimeTrackingCtrl", templateUrl:'partials/time_tracking.html'}).      
      when('/addNewPost', {controller:BlogCtrl, templateUrl:'partials/addNewPost.html'}).
      when('/about', { controller:BlogCtrl, templateUrl:'partials/about.html'}).      
      when('/about/:id', { controller:BlogCtrl, templateUrl:'partials/about.html'}).
      when('/todos', {controller:TodosCtrl,  templateUrl:'partials/todos.html'}).
      when('/todos/:id', { controller:TodosCtrl,  templateUrl:'partials/todosDetails.html'}).
      otherwise({redirectTo:'/login'});
  });


demoApp.value('ui.config', {
   tinymce: {
      width: "100%",
      statusbar : false,
      theme_advanced_resizing : true,
      theme_advanced_resize_horizontal : false,
      height: 300,
       theme_advanced_toolbar_location : "top",
      theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
      theme_advanced_resizing_use_cookie : true,
      theme_advanced_buttons1 : "separator,bold,italic,underline,strikethrough,separator, separator,forecolor,backcolor, separator, removeformat,cleanup, fontsizeselect, fontselect",
      theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,justifyfull, separator, bullist,numlist,separator,outdent,indent,separator, hr,charmap,separator,link,unlink,separator,image,separator,code, separator,undo,redo,separator",
      theme_advanced_buttons3: "",
      theme_advanced_statusbar_location : "bottom"
   }
});

